<!DOCTYPE html>
<html>
<head>
<title>系统提醒设置</title>
<jsp:include page="../../include/header.jsp" />
<script type="text/javascript">
	$( document ).ready(function() {
		base.config.initNotificationSetting();
	});
</script>
</head>
<body class="smartao">
<form id="notificationConfigForm" class="form-horizontal" action="base/config/notification-config!save.action" method="post">
	<div class="alert hide">
		<i class="icon-info-sign icon-large"></i>
		<button type="button" class="close" data-dismiss="alert">&times;</button>
		<span></span>
	</div>
	<div class="breadcrumb">
		<span><i class="icon-cog"></i>邮件提醒设置</span>
	</div>
	<div>
		<div class="control-group">
			<label class="control-label">是否启用邮件提醒</label>
			<div class="controls">
				<label class="radio inline">
					<input type="radio" name="email.enabled" value="true"  fieldValue="${email.enabled}" />
					启用
				</label>
				<label class="radio inline">
					<input type="radio" name="email.enabled" value="false" fieldValue="${email.enabled}" />
					不启用
				</label>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">邮件发送地址</label>
			<div class="controls">
				<input type="text" name="email.fromAddress" value="${email.fromAddress}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">邮件前缀</label>
			<div class="controls">
				<input type="text" name="email.prefix" value="${email.prefix}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">邮件协议</label>
			<div class="controls">
				<input type="text" name="email.protocol" value="${email.protocol}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">Host</label>
			<div class="controls">
				<input type="text" name="email.host" value="${email.host}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">端口</label>
			<div class="controls">
				<input type="text" name="email.port" value="${email.port}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">超时</label>
			<div class="controls">
				<input type="text" name="email.timeout" value="${email.timeout}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">是否需要安全传输协议</label>
			<div class="controls">
				<label class="radio inline">
					<input type="radio" name="email.tlsRequired" value="true"  fieldValue="${email.tlsRequired}" />
					启用
				</label>
				<label class="radio inline">
					<input type="radio" name="email.tlsRequired" value="false" fieldValue="${email.tlsRequired}" />
					不启用
				</label>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">用户名</label>
			<div class="controls">
				<input type="text" name="email.username" value="${email.username}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">密码</label>
			<div class="controls">
				<input type="text" name="email.password" value="${email.password}" />
			</div>
		</div>
	</div>
	<div class="breadcrumb">
		<span><i class="icon-cog"></i>短信提醒设置</span>
	</div>
	<div>
		<div class="control-group">
			<label class="control-label">是否启用短信提醒</label>
			<div class="controls">
				<label class="radio inline">
					<input type="radio" name="sms.enabled" value="true"  fieldValue="${sms.enabled}" />
					启用
				</label>
				<label class="radio inline">
					<input type="radio" name="sms.enabled" value="false" fieldValue="${sms.enabled}" />
					不启用
				</label>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">消息后缀</label>
			<div class="controls">
				<input type="text" name="sms.suffix" value="${sms.suffix}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">账号</label>
			<div class="controls">
				<input type="text" name="sms.account" value="${sms.account}" />
			</div>
		</div>
		<div class="control-group">
			<label class="control-label">密码</label>
			<div class="controls">
				<input type="text" name="sms.password" value="${sms.password}" />
			</div>
		</div>
	</div>
	<div class="form-actions form-action-no-bg">
	    <button class="btn btn-success btn-small" type="submit">保存</button>
	</div>
</form>
</body>
</html>